Skip to main content

Navigation rail

Type

widget

Summary

A widget that can be used as a horizontal or vertical navigation rail, with a menu button, a floating action button (FAB), and various destination buttons.

Description

A widget that can be used as a horizontal or vertical navigation rail, with a menu button, a floating action button (FAB), and various destination buttons.

Associated Syntax

Property

NameSummarySyntax
hilitedItemIndexThe index of the currently selected navigation itemset the hilitedItemIndex of widget to <Number> get the hilitedItemIndex of widget
destinationLabelHiliteColorSpecifies the Label color of the destination elements when hilited.set the destinationLabelHiliteColor of widget to <RGBA Color> get the destinationLabelHiliteColor of widget
destinationIconHoverColorSpecifies the icon color of the destination elements when hovering.set the destinationIconHoverColor of widget to <RGBA Color> get the destinationIconHoverColor of widget
fabColorSpecifies the background color of the FAB.set the fabColor of widget to <RGBA Color> get the fabColor of widget
dividerWidthSpecifies width of the divider.set the dividerWidth of widget to <RGBA Color> get the dividerWidth of widget
destinationsOffsetThe destinations offsetset the destinationsOffset of widget to <Number> get the destinationsOffset of widget
marginThe marginset the margin of widget to <Number> get the margin of widget
fabIconHiliteColorSpecifies the hilited icon color of the FAB.set the fabIconHiliteColor of widget to <RGBA Color> get the fabIconHiliteColor of widget
labelVisibilityDetermines when a destination label is shownset the labelVisibility of widget to { true | false } get the labelVisibility of widget
fabHiliteColorSpecifies the hilite color of the FAB.set the fabHiliteColor of widget to <RGBA Color> get the fabHiliteColor of widget
destinationIconHiliteColorSpecifies the icon color of the destination elements when hilited.set the destinationIconHiliteColor of widget to <RGBA Color> get the destinationIconHiliteColor of widget
destinationIconSizeThe size of a destination iconset the destinationIconSize of widget to <Number> get the destinationIconSize of widget
fabCornerRadiusThe radius of the FAB cornersset the fabCornerRadius of widget to <Number> get the fabCornerRadius of widget
useIndicatorWhether the active destination shows an indicatorset the useIndicator of widget to <Boolean> get the useIndicator of widget
fabHoverColorSpecifies the hover color of the FAB.set the fabHoverColor of widget to <RGBA Color> get the fabHoverColor of widget
destinationIconColorSpecifies the icon color of the destination elements.set the destinationIconColor of widget to <RGBA Color> get the destinationIconColor of widget
dividerColorSpecifies color of the divider.set the dividerColor of widget to <RGBA Color> get the dividerColor of widget
destinationLabelColorSpecifies the Label color of the destination elements.set the destinationLabelColor of widget to <RGBA Color> get the destinationLabelColor of widget
fabLocationThe position of the FAB.set the fabLocation of widget to <String> get the fabLocation of widget
destinationsAlignmentHow to position the destinations group.set the destinationsAlignment of widget to <String> get the destinationsAlignment of widget
hilitedItemNameThe name of the currently selected navigation itemset the hilitedItemName of widget to <Number> get the hilitedItemName of widget
trailingSpaceThe trailing spaceset the trailingSpace of widget to <Number> get the trailingSpace of widget
leadingSpaceThe leading Spaceset the leadingSpace of widget to <Number> get the leadingSpace of widget
dividerLocationThe position of the divider.set the dividerLocation of widget to <String> get the dividerLocation of widget
destinationLabelHoverColorSpecifies the Label color of the destination elements when hovering.set the destinationLabelHoverColor of widget to <RGBA Color> get the destinationLabelHoverColor of widget
menuCornerRadiusThe radius of the menu button cornersset the menuCornerRadius of widget to <Number> get the menuCornerRadius of widget
fabIconColorSpecifies the icon color of the FAB.set the fabIconColor of widget to <RGBA Color> get the fabIconColor of widget
contentThe contentset the content of widget to <Number> get the content of widget
allowDeselectDetermine if the user can deselect navigation itemsset the allowDeselect of widget to <Boolean> get the allowDeselect of widget
fabIconSpecifies icon of the FAB.set the fabIcon of widget to <RGBA Color> get the fabIcon of widget
indicatorColorSpecifies color of the indicator.set the indicatorColor of widget to <RGBA Color> get the indicatorColor of widget
destinationCornerRadiusThe radius of the destination button cornersset the destinationCornerRadius of widget to <Number> get the destinationCornerRadius of widget
showFabWhether to show the FAB or notset the showFab of widget to { true | false } get the showFab of widget
fabIconHoverColorSpecifies the icon hover color of the FAB.set the fabIconHoverColor of widget to <RGBA Color> get the fabIconHoverColor of widget
showMenuIconDetermine if the menu icon is shownset the showMenuIcon of widget to <Boolean> get the showMenuIcon of widget

Message

NameSummarySyntax
mouseUpSent when the navigation rail is clickedmouseUp pButton, pEventInfo
hiliteChangedSent when the hilited destination of the navigation rail changeshiliteChanged pNewIndex, pOldIndex